home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 200
/
200.d81
/
all smiles
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
8KB
|
241 lines
5 ifjg=0thenjg=1:gosub5000
6 dv=peek(186):ifdv<8thendv=8
100 ifml=1then300
110 ifml=2then320
120 ifml=8then1210
130 mz=7:oo$="[147]":goto1160
140 rem
150 dimw(99,2):lv=3:print"[147][152]";
160 w(4,1)=33:w(4,2)=5:forb=6to13:w(b,1)=21:w(b,2)=55:next
170 w(82,1)=129:w(82,2)=250:w(50,1)=129:w(50,2)=250
180 w(99,1)=21:w(99,2)=250:sl$=" "
190 w(1,1)=17:w(1,2)=50:f$="maze 1":gosub2000:pn=1
200 w(3,1)=65:w(3,2)=15:w(5,1)=85:w(5,2)=30:w(26,1)=129:w(26,2)=25
210 x=2:y=1:cl=13:ch=82:ml=.
220 poke53281,12:poke53280,12:d=.:x1=.:x2=.:x3=.:ok=.:ml=.
230 oo$="[147]"
240 ifjp=mzthen1040
250 fort=54272to54295:poket,0:next:poke54296,15:iflv>3thenlv=3
260 ad=1*16+0:sr=15*16+2
270 poke54284,ad:poke54285,sr:poke54282,0:poke54281,255
280 poke53281,76
290 ifml=.thenml=1:load f$+".ml",dv,1
300 x=peek(1944)+1:y=peek(1946)
310 ifml=1thenml=2:load f$+"/c.ml",dv,1
320 rem
330 remifx=2thenprint"[144]o":goto452
340 remifx=12thenprint"o"
345 printvt$(23)" "
350 printvt$(24)"you have"lv+1;:iflv=0thenprint"life to live."
352 iflv>0thenprint"lives to live.":gosub1750
360 j=peek(56320):ifj<>127then375
370 q=peek(54272+(1023+x+(y*40))):poke54272+(1023+x+(y*40)),abs((q)-1):goto360
375 printvt$(23)"press 'q' at any time to quit "
380 fort=54272to54295:poket,0:next:poke54296,15
390 ad=1*16+0:sr=15*16+2
400 poke54284,ad:poke54285,sr:poke54282,0:poke54281,255:ifj<>127then430
405 gett$:ift$="q"thengosub4000
410 ifpeek(56320)=127andd<>2then405
420 j=peek(56320)
430 ifj=119thenx1=1023+x+1:x2=y*40:ifpeek(x1+x2)<5orpeek(x1+x2)=82then540
440 ifj=123thenx1=1023+x-1:x2=y*40:ifpeek(x1+x2)<5orpeek(x1+x2)=82then540
450 ifj=126thenx1=1023+x:x2=y-1:x3=x2*40:ifpeek(x1+x3)=1then540
460 ifj=125thenx1=1023+x:x3=(y+1)*40:ifpeek(x1+x3)=1orpeek(x1+x3)=32then540
470 ifj=119thenx1=1023+x+1:x2=y*40:ifpeek(x1+x2)=32orpeek(x1+x2)=99then540
480 ifj=123thenx1=1023+x-1:x2=y*40:ifpeek(x1+x2)=32orpeek(x1+x2)=99then540
490 ifj=111thench=32:goto690
500 ifd<>2then410
510 ifd=2andsm=.thenj=126:goto540
520 ifsm=1then1100
530 goto410
540 ifd=2andj<>126thend=.:sm=.
550 x1=1023+x:x2=y*40:x3=x1+x2:pokex3,ch:poke54272+x3,cl
560 ifj=119thenx=x+1
570 ifj=123thenx=x-1
580 ifj=126theny=y-1
590 ifj=125theny=y+1
600 x3=1023+x+y*40:ch=peek(x3):cl=peek(54272+x3)
610 poke54283,.:poke54280,.
620 poke54283,w(ch,1):poke54280,w(ch,2):poke54283,abs(w(ch,1)-1)
630 ok=peek(x3)
640 ifch=3thench=5:cl=9
650 pokex3,15:pokex3+54272,0:ifok<>32andd<>1then410
660 ifok=2ord=2thend=2:goto1070
670 ifok=32thend=1:j=125:poke54283,21:poke54280,y*9:poke54283,20:goto540
680 ifch=99thend=0:goto410
690 x1=1023+x:x2=y*40:gosub1110:fort=65to73:pokex1+x2,t:forh=1to80:next:next
700 poke54283,0
710 ifok=3then750
720 ifok=19then750
730 x1=1023+x:x2=y*40:x3=x1+x2:pokex3,ch:poke54272+x3,cl
740 goto1120
750 rem
760 x3=1023+x+(y+1)*40:z=peek(x3):ifz=32thenok=32:ch=5:cl=9:goto670
770 ifok<>19then1120
780 ifpn=tpthen1040
790 lv=lv+1:poke53281,76:printoo$"you may advance to the next level[146]!"
800 pn=pn+1:f$="maze "+str$(pn):goto210
810 lv=lv+1:poke53281,76:f$="maze "+str$(pn):goto210
820 x3=1023+x+(y+1)*40:z=peek(x3):ifz=32thenok=32:ch=5:cl=9:goto670
830 ifok<>19then1120
840 poke53281,76:printoo$"you deserve to play the next level[146]!"
850 jp=2:f$="maze 3":lv=lv+1:goto210
860 x3=1023+x+(y+1)*40:z=peek(x3):ifz=32thenok=32:ch=5:cl=9:goto670
870 ifok<>19then1120
880 poke53281,76:printoo$"lets see if you can conquer this..."
890 jp=3:f$="maze 4":x=12:y=20:ch=1:cl=0:lv=lv+1:goto220
900 x3=1023+x+(y+1)*40:z=peek(x3):ifz=32thenok=32:ch=5:cl=9:goto670
910 ifok<>19then1120
920 poke53281,76:printoo$"you may advance to a new level![146]"
930 lv=lv+1:jp=4:f$="maze 5":goto210
940 x3=1023+x+(y+1)*40:z=peek(x3):ifz=32thenok=32:ch=5:cl=9:goto670
950 ifok<>19then1120
960 poke53281,76:printoo$"you may attempt another level![146]"
970 lv=lv+1:jp=5:f$="maze 6":goto210
980 x3=1023+x+(y+1)*40:z=peek(x3):ifz=32thenok=32:ch=5:cl=9:goto670
990 ifok<>19then1120
1000 poke53281,76:printoo$"try this next level![146]"
1010 lv=lv+1:jp=6:f$="maze 7":goto210
1020 x3=1023+x+(y+1)*40:z=peek(x3):ifz=32thenok=32:ch=5:cl=9:goto670
1030 ifok<>19then1120
1040 print"[147] you have won... but not conquered!"
1050 print:print" i will return!"
1060 gosub1600:fort=1to1000:next:gosub1840:print"[147]";:goto1860
1070 ifpeek(x3-40)=32thenj=126:poke54283,21:poke54280,y*9:poke54283,20:goto410
1080 ifpeek(x3-40)=99thend=.:j=126:goto540
1090 j=peek(56320):ifj=119orj=123thensm=1:goto430
1100 j=111:goto490
1110 poke54283,129:poke54280,5:return
1120 iflv=.then1870
1130 poke53281,76:printoo$"you're slipping away fast[146]!"
1140 forx=1to2500:next
1150 lv=lv-2:goto810
1160 poke56334,peek(56334)or1:poke53272,(peek(53272)and240)+12
1170 ifpeek(12288)=60then1210
1180 ml=8:sys57812"parts",dv:poke780,0:poke781,0:poke782,48:sys65493:goto5
1190 fori=.to255:forj=.to7:get#1,a$:poke12288+j+i*8,asc(a$+chr$(.)):nextj,i
1200 close2
1210 print"[147][144]";:jq=56320:poke198,0:sw=12:poke53281,0:poke53280,0:jp=0:mz=7
1220 if ga=1then1560
1240 print"insert coin"
1250 cq=cq+1:forg=1tosw:geta$:ifa$=""andpeek(jq)=127thennext
1260 ifa$<>""orpeek(jq)<>127then1330
1270 ifcq=1orcq=9thenprint"[144]";:goto1240
1280 ifcq=2orcq=8thenprint"[151]";:goto1240
1290 ifcq=3orcq=7thenprint"[152]";:goto1240
1300 ifcq=4orcq=6thenprint"[155]";:goto1240
1310 ifcq=5thenprint"";:goto1240
1320 cq=1:sw=abs(sw)-1:goto1270
1330 poke53281,12:poke53280,12:print"[147]"
1335 poke214,11:print:printtab(13)"o thank you[146] o":gosub1860:gosub1800
1340 ifga=1thenforg=1to1000:next:goto1530
1350 print"[147]":poke214,3:print:printtab(8)"loadstar and ron coffen
1360 [151]214,5:[153]:[153][163]15)"present":[129]g[178]1[164]2500:[130]
1370 [129]t[178].[164]24:[151]54272[170]t,0:[130]
1380 [153]:[153]"loadprintgggggggggggggggggggggggggggggggggggggggg"
1390 [153]"verify eee e e
1400 print" e e e e
1410 [153]" eeeee e e
1420 print" e e e e
1430 [153]" e e eeee eeee
1440 print
1450 print
1460 print" eee e e eee e eee eee
1470 [153]" e e e e e e e e
1480 print" ee e e e e ee ee
1490 [153]" e e e e e e e
1500 print" eee e e eee eee eee eee
1510 [153]:[153]"printprintgggggggggggggggggggggggggggggggggggggggg"
1520 [141]1710
1530 [153]"";:[153]" press fire to play"
1535 [153]"";:[153]" or "[199](34)"q"[199](34)" to return to main menu"
1540 [153]" stopoo"
1545 [161]t$:[139]t$[178]"q"[167]4040
1550 [139][194](56320)[178]127[167]1545
1560 :x1[178]1043:x2[178]920:[141]1840:[129]t[178]65[164]73:[151]x1[170]x2,t:[129]h[178]1[164]60:[130]:[130]
1570 x1[178]1044:x2[178]920:[141]1840:[129]t[178]65[164]73:[151]x1[170]x2,t:[129]h[178]1[164]60:[130]:[130]
1580 [141]1640:[137]140
1590 [144]
1600 [141]1860:[143]"tantantan last xtantantan"
1610 [151]54296,15:[151]54277,8:[151]54278,255:[151]54276,23:f1[178]10:[129]z[178]1[164]24:f2[178]30
1620 [151]54273,f1:[129]y[178]1[164]10:[151]54287,f2:f2[178]f2[172]1.01:[130]:f1[178]f1[170]8:[130]:[151]54296,0
1630 [142]
1640 [141]1860:[143]"tantantan hyper tantantan"
1650 [151]54296,15:[151]54277,8:[151]54278,255:[151]54276,21:f1[178]2:[129]z[178]1[164]24:f2[178]80
1660 [151]54273,f1:[129]y[178]1[164]5:[151]54287,f2:f2[178]f2[173]1.1:[130]:f1[178]f1[170]9:[130]:[151]54296,0
1670 [142]
1680 [141]1860
1690 [151]54296,15:[151]54277,8:[151]54278,255:[151]54276,85:f1[178]100:f2[178]230:[129]z[178]1[164]77
1700 [151]54272,f1:[151]54287,f2:f2[178]f2[171]2:f1[178]f1[172].99:[130]:[151]54296,0:[142]
1710 [143]
1720 [151]54296,15:[151]54277,15:[151]54298,17:[151]54276,19:[151]54287,64:[129]n[178]1[164]3
1730 [129]f[178]1[164]255[169]4:[151]54273,f:[130]f
1740 [129]f[178]255[164]1[169][171]2.5:[151]54273,f:[130]f:[130]n:[151]54296,0:[142]
1750 [141]1860
1760 [151]54296,15:[151]54277,15:[151]54286,67:[151]54287,12:[151]54276,21
1770 [129]f[178].[164]255[169]2:[151]54273,f:[130]f
1780 [129]f[178]255[164]0[169][171]2:[151]54273,f:[130]:[142]
1790 j[178][194](56320):[142]
1800 :
1810 q[178]50:f2[178]